﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Marmat.Forms.Skin
{

    /// <summary>
    /// 提供有关 System.Windows.Forms.TreeView.NodeMouseClick 和 System.Windows.Forms.TreeView.NodeMouseDoubleClick 事件的数据。
    /// </summary>
    public class TreeNodeMouseClickEventArgs : MouseEventArgs
    {

        /// <summary>
        /// 初始化 System.Windows.Forms.TreeNodeMouseClickEventArgs 类的新实例。
        /// </summary>
        /// <param name="node">被单击的节点。</param>
        /// <param name="button">System.Windows.Forms.MouseButtons 成员之一。</param>
        /// <param name="clicks">发生的单击的数目。</param>
        /// <param name="x">单击发生处的 x 坐标。</param>
        /// <param name="y">单击发生处的 y 坐标。</param>
        public TreeNodeMouseClickEventArgs(TreeNode node, MouseButtons button, int clicks, int x, int y) : base(button, clicks, x, y, 0)
        {
            this.Node = node;
        }

        /// <summary>
        /// 获取被单击的节点。
        /// </summary>
        /// <returns>被单击的 System.Windows.Forms.TreeNode。</returns>
        public TreeNode Node { get; }
    }
}
